﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WS.DAL
{
    public abstract class DathangDAL: BaseDAL,IBase
    {
        public int Count()
        {
            throw new NotImplementedException();
        }

        public object Select(string code)
        {
            throw new NotImplementedException();
        }

        public System.Data.DataTable Select(Guid fKey)
        {
            throw new NotImplementedException();
        }

        public System.Data.DataTable Select(object obj = null, int skip = 0, int take = 0)
        {
            throw new NotImplementedException();
        }

        public object Insert(object obj)
        {
            return _sqlMapper.Insert("Dathang_Insert", obj);
        }

        public object Update(object obj)
        {
            return _sqlMapper.Insert("Dathang_Unsert", obj);
        }

        public object Delete(Guid id = new Guid())
        {
            throw new NotImplementedException();
        }

        public System.Data.DataTable Lay_Dathang_Moinhat(Guid Khachhang_Id)
        {
            return Mapper.QueryForDataTable("Lay_Dathang_Moinhat", Khachhang_Id);
        }
    }
}
